<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板插值和指令的优先级</title>
</head>
<body>
<div id="app">
    <div v-text="number">{{ info * 2}}</div>
    <div v-html="content">{{ content * 2}}</div>
</div>

<script type="module">
    import {createApp} from "../../../js/vue.esm-browser.js";

    let app = createApp(
        {
            setup(){
                let number = 123;
                let info = "Hello, World!";
                let content="<h1>Hello</h1>";

                return {
                    number,
                    info,
                    content
                }
            }
        }
    );

    app.mount("#app")
</script>
</body>
</html>